/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

API.toolbar = API.toolbar || {};
        
API.toolbar.BasicToolbar = function(config){
    
    API.apply(this, config, {
        class: 'toolbar',
        items: []
    });
    
    var t = document.createElement('div');
    t.className = this.class;
    
    API.forEachF(this.items, function(item){
        t.appendChild(item.DOM);
    });
    
    this.DOM = t;
    
};
